<?php
//依赖注入
use example\course\CourseA;
use example\course\CourseB;
use example\course\Director;
require_once 'Director.php';
require_once 'CourseA.php';
require_once 'CourseB.php';
$director = new Director();
echo ($director->build(new CourseA()));
echo '<br>';
echo ($director->build(new CourseB()));
